<html>
<head><meta charset="utf-8"><title>JS-&gt;Rust types support · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/JS-.3ERust.20types.20support.html">JS-&gt;Rust types support</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234679696"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/JS-%3ERust%20types%20support/near/234679696" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Anatol Ulrich <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/JS-.3ERust.20types.20support.html#234679696">(Apr 15 2021 at 13:57)</a>:</h4>
<p>(context: WASM/browser) is there anything planned (or existing) in terms of JavaScript helper functions to create value objects that can be sent to Rust? in other words, I have some <code>#[derive(Serialize, Deserialize)]</code> struct that contains other structs and so on, and I'd like to have some JS constructors (maybe even with some basic type checking?) instead of manually writing <code>{Foo: {bar: 1, Baz: {blah: "two", }}}</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>